/* use with process.h*/

#define HEAPROOT	1
#define HEAPSIZE	PROC_SYS_MAX

struct pqueue
{
	struct process *heap[HEAPSIZE];
	/* the last index in the heap*/
	int loc;
};

struct pqueue *pq_create();
int pq_insert(struct pqueue*, struct process *);
struct process *pq_remove(struct pqueue*);
struct process *pq_peek(struct pqueue*);
int pq_is_empty(struct pqueue*);



